package com.ruoyi.mymod.controller.drawer;


import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.mymod.service.ICheEntryService;
import com.ruoyi.mymod.service.IDrawerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 测试功能
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/drawer")
public class DrawerController extends BaseController
{

    @Autowired
    private IDrawerService drawerService;


    @GetMapping("/getData")
    public AjaxResult getData(@RequestParam(required = false) String type) throws Exception {
        String datas = drawerService.getData(type);
        return success(datas);
    }




}
